package com.linkdood.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.linkdood.app.constants.ErrorCode;
import com.linkdood.app.domain.ThirdParty;
import com.linkdood.app.exception.GeneralException;
import com.linkdood.app.exception.InvalidParamException;
import com.linkdood.app.mapper.ThirdPartyMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Optional;

/**
 * 第三方平台 Service
 *
 * @author hycao
 */
public interface ThirdPartyService extends IService<ThirdParty> {

    ThirdParty getThirdParty(String thirdPartyId);

    void updateThirdParty(ThirdParty thirdParty);

    /**
     * 获取默认第三方应用
     */
    ThirdParty getDefaultThirdParty();

    /**
     * 获取具体的第三方应用
     */
    List<ThirdParty> listByThirdsType(Integer type);

    List<ThirdParty> listThirdPartyByThirdPartyId(String thirdPartyId);
}
